import com.thoughtworks.selenium.*;
import static org.junit.Assert.*;
public class Page {
	static Selenium bo= new DefaultSelenium("localhost", 4444, "*firefox", "http://www.credomobile.com");
	
	
	public void clickAndWait(String element)
	{
	bo.click(element);
	bo.waitForPageToLoad("30000");
	}

	public void clickAndWait(String element, String timemillisec)
	{
	bo.click(element);
	bo.waitForPageToLoad(timemillisec);
	}
	
	public void verifyTitle(String title)
	{
		assertEquals(title,bo.getTitle());
	}
	
	public void closeBrowser()
	{
		bo.close();
	}
}
